package com.kt.exception;

import com.kt.enums.ResultEnum;

/**
 * 异常类
 */
public class OrderException extends  RuntimeException {
    private Integer code;

    public OrderException(Integer code,String message){
    super(message);
    this.code=code;
    }
    public OrderException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code=code;
    }
}
